Current Location: Home> Function Categories> is_finite

is_finite

Determine whether it is a finite value
Name:is_finite
Category:math
Programming Language:php
One-line Description:Determine whether it is a finite value.

Definition and usage

is_finite() function determines whether it is a finite value.

Example

 <?php
echo is_finite ( 2 ) ;
echo is_finite ( log ( 0 ) ) ;
echo is_finite ( 2000 ) ;
?>

Try it yourself

grammar

 is_finite ( x )
parameter describe
x Required. Specify the value to be checked.

illustrate

Return true if x is a legal finite value in the range allowed by PHP floating point numbers on the native platform.

Similar Functions
  • Returns exp(number) - 1, and can calculate the exact result even when the value of number is close to zero. expm1

    expm1

    Returnsexp(number)-1
  • Convert decimal to octal decoct

    decoct

    Convertdecimaltoocta
  • Natural logarithm log

    log

    Naturallogarithm
  • Generate a random integer rand

    rand

    Generatearandominteg
  • Arctangle of two parameters atan2

    atan2

    Arctangleoftwoparame
  • Calculate the oblique length of a straight triangle hypot

    hypot

    Calculatetheobliquel
  • Convert binary to decimal bindec

    bindec

    Convertbinarytodecim
  • Convert numbers between any binary base_convert

    base_convert

    Convertnumbersbetwee